home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c / 562 < prev    next >
Internet Message Format  |  1996-08-06  |  2KB

  1. Path: tbj.dec.com!diamond
  2. From: diamond@tbj.dec.com (Norman Diamond)
  3. Newsgroups: gnu.misc.discuss,comp.std.c
  4. Subject: Re: Coding Standards are ignorant
  5. Date: 14 Mar 1996 03:03:20 GMT
  6. Organization: Digital Equipment Corporation Japan , Tokyo
  7. Message-ID: <4i829o$qbh@usenet.pa.dec.com>
  8. References: <4gum82$14v4@info4.rus.uni-stuttgart.de>  <1996Mar403.23.06.8316@koobera.math.uic.edu>  <4he37i$a0u@solutions.solon.com> <4hf9m1$fp8@fg70.rz.uni-karlsruhe.de>  <4hfecl$33t@solutions.solon.com>  <KANZE.96Mar5131710@slsvgqt.lts.sel.alcatel.de> <danpop.826218405@rscernix> <KANZE.96Mar8125719@gabi.gabi-soft.fr> <danpop.826543744@rscernix>
  9. Reply-To: diamond@tbj.dec.com (Norman Diamond)
  10. NNTP-Posting-Host: jit533.tbj.dec.com
  11.  
  12. In article <danpop.826543744@rscernix>, danpop@mail.cern.ch (Dan Pop) writes:
  13. >In <KANZE.96Mar8125719@gabi.gabi-soft.fr> kanze@gabi-soft.fr (J. Kanze) writes:
  14. >>With regards to the -ansi options: for the most part, they just turn on
  15. >>function prototyping, and maybe make a few changes in the preprocessor.
  16. >>They don't necessarily make the compiler ISO conformant.  (On at least
  17. >>one of my compilers, to get anything close to ISO conformance, the
  18. >>option is `-ansi -pendantic', and not just -ansi.)
  19.  
  20. >But the point remains: it's -ansi and not -iso.
  21.  
  22. Not quite:  it's -pedantic not -ansi :-)
  23.  
  24. >Does any of your compilers have a -iso option?  
  25.  
  26. At least one compiler has a -std option.  That's the good news.  The bad news
  27. is that it's documented (if an online manual page is a document :-)  thus:
  28.      -std Produce errors for constructions that are not compatible with the
  29.           ANSI standard.
  30.  
  31. Incidentally, when a conforming implementation has to translate and execute
  32. one program that reaches all the specified translation limits, the standard
  33. doesn't promise much about the lucky program.  Therefore an implementation
  34. of some weird language that knows "struct" but doesn't know "union", or
  35. that intuitively fails to conform in many ways, technically still conforms.
  36. Maybe you don't need to name any option :-)
  37. --
  38.  <<  If this were the company's opinion, I would not be allowed to post it.  >>
  39. "I paid money for this car, I pay taxes for vehicle registration and a driver's
  40. license, so I can drive in any lane I want, and no innocent victim gets to call
  41. the cops just 'cause the lane's not goin' the same direction as me" - J Spammer
  42.